# Name:     wscp-yth
# Time:     2024-11-22
FROM openjdk:17-jdk-alpine

MAINTAINER lukailei <lukailei@sippr.cn>

ENV TIME_ZONE 'Asia/Shanghai'
ENV SLEEP_SECOND '1s'

ENV JAVA_OPTS '-server -Xms256m -Xmx512m -XX:+UseG1GC -XX:MaxGCPauseMillis=200'
RUN apk add --no-cache tzdata \
    && ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime \
    && echo $TIME_ZONE > /etc/timezone

VOLUME /tmp

ADD rvt2ifc-1.0-SNAPSHOT.jar app.jar

ENTRYPOINT echo please waitting $SLEEP_SECOND \
				&& sleep $SLEEP_SECOND \
				&& java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -Dserver.port=8086 -jar app.jar
EXPOSE 8086